package com.atguigu.tingshu.album.domain;

import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class MxwObject {

    private String database;

    private String table;

    private String update;

    private Long ts;

    private Integer xid;

    private Boolean commit;

    private String data;

    private String old;
}

/**
 * {
 *     "database": "tingshu_album",
 *     "table": "album_stat",
 *     "type": "update",
 *     "ts": 1723459015,
 *     "xid": 3069,
 *     "commit": true,
 *     "data": {
 *         "id": 9,
 *         "album_id": 3,
 *         "stat_type": "0401",
 *         "stat_num": 1,
 *         "create_time": "2023-04-04 01:05:53",
 *         "update_time": "2024-08-12 10:36:55",
 *         "is_deleted": 0
 *     },
 *     "old": {
 *         "stat_num": 0,
 *         "update_time": "2023-04-21 01:14:02"
 *     }
 * }
 */